home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pcmagazi
/
1992
/
11
/
bomeom
/
bomeom.prg
Wrap
Text File
|
1991-11-14
|
795b
|
22 lines
***********************************************************************
* FUNCTION BOM( dDay ) Clipper 5
* Return the first date of the month
***********************************************************************
FUNCTION BOM( dDay )
IF dDay == NIL
dDay := DATE()
ENDIF
RETURN dDay - DAY( dDay ) + 1
***********************************************************************
* FUNCTION EOM( dDay ) Clipper 5
* Return the last date of the month
***********************************************************************
FUNCTION EOM( dDay )
LOCAL dBump
IF dDay == NIL
dDay := DATE()
ENDIF
dBump := dDay + 35 - DAY( dDay ) // Somewhere in next month
RETURN dBump - DAY( dBump )